﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ThanhToan.aspx.cs" Inherits="WebNXBKD12.ThanhToan" %>
<%@ Register src="ShoppingCart.ascx" tagname="ShoppingCart" tagprefix="uc1" %>
<%@ Import Namespace = "System.Data.SqlClient"%>
<%@ Import Namespace = "WebNXBKD12.App_Code"%>

<asp:Content ID="Content1" ContentPlaceHolderID="left_content" runat="server">
    <form id="form1" runat="server">

    <asp:Label id="NoCartlabel" runat="server" visible="false">
        There are no items in your cart. Visit the shop to buy items.
    </asp:Label>
    <asp:LoginView ID="LoginView1" runat="server">
        <AnonymousTemplate>
        <asp:passwordrecovery id="PasswordRecovery1" runat="server" />
        </AnonymousTemplate>
    </asp:LoginView>

    <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="4">
        <WizardSteps>
            <asp:WizardStep runat="server" title="Đăng nhập">
                <asp:Login ID="Login1" runat="server">
                </asp:Login>
            </asp:WizardStep>
            <asp:WizardStep runat="server" title="Địa chỉ nhận hàng">
                <asp:checkbox id="chkUseProfileAddress" runat="server" autopostback="True"
                                text="Use membership address"
                                OnCheckedChanged="chkUseProfileAddress_CheckedChanged"></asp:checkbox><br />
                <table border="0">
                    <tr>
                        <td>Name</td><td><asp:textbox id="txtName" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>Address</td><td><asp:textbox id="txtAddress" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>City</td><td><asp:textbox id="txtCity" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>County</td><td><asp:textbox id="txtCounty" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>Postcode</td><td><asp:textbox id="txtPostCode" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>Country</td><td><asp:textbox id="txtCountry" runat="server" /></td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep runat="server" Title="Thanh toán">
                <asp:DropDownList id="lstCardType" runat="server">
                    <asp:ListItem>MasterCard</asp:ListItem>    
                    <asp:ListItem>Visa</asp:ListItem>    
                </asp:DropDownList>
                <br />
                Card Number: <asp:Textbox id="txtNumber" runat="server"
                Text="0123456789" ReadOnly="True"/>
                <br />
                Expires:
                <asp:textbox id="txtExpiresMonth" runat="server" columns="2" />
                <asp:textbox id="txtExpiresYear" runat="server"  columns="4"/>
            </asp:WizardStep>
            <asp:WizardStep runat="server" Title="Xác nhận mua sách">
                <uc1:ShoppingCart ID="ShoppingCart1" runat="server" />
                Please confirm the amount you wish to have deducted from your credit card.
            </asp:WizardStep>
            <asp:WizardStep runat="server" Title="Hoàn tất">
                Thank you for your order
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
    </form>
</asp:Content>
